package service.Impl;

import dao.Impl.RainDaoImpl;
import dao.RainDao;
import entity.Rainquality;
import service.RainService;

import java.util.List;

public class RainServiceImpl implements RainService {
    RainDao rainDao=new RainDaoImpl();
    @Override
    public List<Rainquality> getAll() {
        return rainDao.getAll();
    }

    @Override
    public int add(String districtName, String monitorTime, int rain, String monitoringStation, String monitoringAddress) {
        return rainDao.add(districtName,monitorTime,rain,monitoringStation,monitoringAddress);
    }

    @Override
    public boolean del(String contentId) {
        return rainDao.del(contentId);
    }
}
